﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~masterurl/custom.master" 
  Inherits="Kiiro.SiteDefinition.PortalPages.EditUser, Kiiro.SiteDefinition, Version=1.2.0.7, Culture=neutral, PublicKeyToken=5b2f4277f61b7816"
  MaintainScrollPositionOnPostback="true" %>

<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register TagPrefix="SharePoint" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
  Namespace="Microsoft.SharePoint.WebControls" %>
<%@ Register TagPrefix="v2" TagName="CustomFieldCollection" Src="~/_controltemplates/Kiiro/CustomFieldCollection.ascx" %>
<%@ Register TagPrefix="v2" TagName="AttachmentControl" Src="~/_controltemplates/Kiiro/AttachmentControl.ascx" %>
<%@ Register TagPrefix="v2" TagName="FormButtons" Src="~/_controltemplates/Kiiro/FormButtons.ascx" %>
<asp:Content ID="ContentTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
  <asp:Literal ID="litTitle" runat="server" />
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

  <script type="text/javascript">
    $(InitProfilePicture);
    $(DetermineIfManageProjects);    
    $( function(){ $('.settings .row:last').addClass('borderless'); } );
  </script>

  <div class="body-pad">
    <div class="body">
      <div class="wrap">
        <div class="panel-pad">
          <div class="panel">
            <div class="panel-wrap">
              <div class="panel-title">
                <h2>
                  User Settings</h2>
              </div>
              <div class="panel-content">
                <div class="settings">
                  <div class="row">
                    <dl>
                      <dt>Login</dt>
                      <dd><asp:Label ID="txtLogin" runat="server" /></dd>
                      <dd><asp:Label ID="lblLoginMessage" runat="server" CssClass="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          <asp:Label ID="lblUserLogin" runat="server">User's login name</asp:Label>
                          <asp:Label ID="lblMyLogin" runat="server" Visible="false">My login name</asp:Label>
                        </h3>
                      </dt>
                      <dd></dd>
                    </dl>
                  </div>
                  <asp:Panel ID="pnlFormsUser" runat="server" CssClass="row" Visible="false">
                    <dl>
                      <dt>Password</dt>
                      <dd><asp:LinkButton ID="btnChangePassword" runat="server" Text="Click to change password" OnClick="btnChangePassword_Click" /></dd>
                    </dl>
                  </asp:Panel>
                  <asp:Panel ID="pnlChangePassword" runat="server" Visible="false">
                    <div class="row" id="currentPasswordRow" runat="server">
                      <dl>
                        <dt>Current Password <span class="required">*</span></dt>
                        <dd><asp:TextBox ID="txtPassword" TextMode="Password" runat="server" class="input" /></dd>
                        <dd><asp:Label ID="lblPasswordMessage" runat="server" CssClass="validation-message" /></dd>
                      </dl>
                      <dl>
                        <dt>
                          <h3>
                            <asp:Label ID="lblUserPassword" runat="server">User's password</asp:Label>
                            <asp:Label ID="lblMyPassword" runat="server" Visible="false">My password</asp:Label>
                          </h3>
                        </dt>
                        <dd></dd>
                      </dl>
                    </div>
                    <div class="row">
                      <dl>
                        <dt>New Password <span class="required">*</span></dt>
                        <dd><asp:TextBox ID="txtNewPassword" TextMode="Password" runat="server" class="input" /></dd>
                        <dd><asp:Label ID="lblNewPasswordMessage" runat="server" CssClass="validation-message" /></dd>
                      </dl>
                      <dl>
                        <dt><h3>New Password</h3></dt>
                        <dd></dd>
                      </dl>
                    </div>
                    <div class="row" id="confirmPasswordRow" runat="server">
                      <dl>
                        <dt>Confirm Password <span class="required">*</span></dt>
                        <dd><asp:TextBox ID="txtConfirmPassword" TextMode="Password" runat="server" class="input" /></dd>
                        <dd><asp:Label ID="lblConfirmPasswordMessage" runat="server" CssClass="validation-message" /></dd>
                      </dl>
                      <dl>
                        <dt><h3>Password Confirmation</h3></dt>
                        <dd>This value must match password entered in the new password field.</dd>
                      </dl>
                    </div>
                  </asp:Panel>
                  <div class="row">
                    <dl>
                      <dt>First name</dt>
                      <dd><asp:TextBox ID="txtFirstName" runat="server" class="input" /></dd>
                      <dd><asp:Label ID="lblFirstNameMessage" runat="server" CssClass="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          <asp:Label ID="lblUserFirstName" runat="server">User's first name</asp:Label>
                          <asp:Label ID="lblMyFirstName" runat="server" Visible="false">My first name</asp:Label>
                        </h3>
                      </dt>
                      <dd></dd>
                    </dl>
                  </div>
                  <div class="row">
                    <dl>
                      <dt>Last name <span class="required">*</span></dt>
                      <dd><asp:TextBox ID="txtLastName" runat="server" class="input" /></dd>
                      <dd><asp:Label ID="lblLastNameMessage" runat="server" CssClass="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          <asp:Label ID="lblUserLastName" runat="server">User's last name</asp:Label>
                          <asp:Label ID="lblMyLastName" runat="server" Visible="false">My last name</asp:Label>
                        </h3>
                      </dt>
                      <dd></dd>
                    </dl>
                  </div>
                  <div class="row">
                    <dl>
                      <dt>Email <span class="required">*</span></dt>
                      <dd><asp:TextBox ID="txtEmail" runat="server" class="input" /></dd>
                      <dd><asp:Label ID="lblEmailMessage" runat="server" CssClass="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          <asp:Label ID="lblUserEmailAddress" runat="server">User's email address.</asp:Label>
                          <asp:Label ID="lblMyEmailAddress" runat="server" Visible="false">My email address.</asp:Label>
                        </h3>
                      </dt>
                      <dd>Maximum length of 100 characters. Email address will be available to other users to see.</dd>
                    </dl>
                  </div>
                  <div class="row">
                    <dl>
                      <dt>Phone number</dt>
                      <dd><asp:TextBox ID="txtPhoneNumber" runat="server" class="input" /></dd>
                      <dd><asp:Label ID="lblPhoneNumberMessage" runat="server" CssClass="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          <asp:Label ID="lblUserPhoneNumber" runat="server">User's phone number.</asp:Label>
                          <asp:Label ID="lblMyPhoneNumber" runat="server" Visible="false">My phone number</asp:Label>
                        </h3>
                      </dt>
                      <dd>Phone number will be available to users to see.</dd>
                    </dl>
                  </div>
                  <div class="row">
                    <dl>
                      <dt>Company Name</dt>
                      <dd><asp:TextBox ID="txtCompanyName" runat="server" class="input" /></dd>
                      <dd><asp:Label ID="lblCompanyNameMessage" runat="server" CssClass="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt><h3>Enter company name.</h3></dt>
                      <dd>
                        <asp:Label ID="lblUserCompanyName" runat="server">Name of company the user belong to.</asp:Label>
                        <asp:Label ID="lblMyCompanyName" runat="server" Visible="false">Name of company I belong to.</asp:Label>
                      </dd>
                    </dl>
                  </div>
                  <div class="row">
                    <dl>
                      <dt>Title</dt>
                      <dd><asp:TextBox ID="txtTitle" runat="server" class="input" /></dd>
                      <dd><asp:Label ID="lblTitleMessage" runat="server" CssClass="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          <asp:Label ID="lblUserTitle" runat="server">User's title.</asp:Label>
                          <asp:Label ID="lblMyTitle" runat="server" Visible="false">My title.</asp:Label>
                        </h3>
                      </dt>
                      <dd>Maximum length of 100 characters.</dd>
                    </dl>
                  </div>
                  <div class="row">
                    <dl>
                      <dt>IM</dt>
                      <dd><asp:TextBox ID="txtIM" runat="server" class="input" /></dd>
                      <dd><asp:Label ID="lblIMMessage" runat="server" CssClass="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          <asp:Label ID="lblUserIMAddress" runat="server">User's IM address.</asp:Label>
                          <asp:Label ID="lblMyIMAddress" runat="server" Visible="false">My IM address.</asp:Label>
                        </h3>
                      </dt>
                      <dd>Maximum length of 100 characters. IM address will be available to other users to see.</dd>
                    </dl>
                  </div>
                  <div class="row">
                    <dl>
                      <dt>IM Client</dt>
                      <dd><asp:TextBox ID="txtIMClient" runat="server" class="input" /></dd>
                      <dd><asp:Label ID="lblIMClientMessage" runat="server" CssClass="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          <asp:Label ID="lblUserIMClient" runat="server">User's IM client.</asp:Label>
                          <asp:Label ID="lblMyIMClient" runat="server" Visible="false">My IM client.</asp:Label>
                        </h3>
                      </dt>
                      <dd>The client that the user's IM address is for. (Gtalk, AIM, MSN, Skype, iChat)</dd>
                    </dl>
                  </div>
                  <div class="row">
                    <v2:AttachmentControl id="attachments" runat="server" Title="Picture" ImageClass="userImgLarge" />
                    <dl>
                      <dt>
                        <h3>
                          <asp:Label ID="lblUserPicture" runat="server">User's picture.</asp:Label>
                          <asp:Label ID="lblMyPicture" runat="server" Visible="false">My picture.</asp:Label>
                        </h3>
                      </dt>
                      <dd>
                        Must be either a .jpg or a .png.<br />
                        Suggested picture size is 144 x 144 pixels.</dd>
                    </dl>
                  </div>
                  <asp:Panel ID="pnlStatus" runat="server" CssClass="row">
                    <dl>
                      <dt>Status note</dt>
                      <dd><asp:TextBox ID="txtStatusNote" runat="server" TextMode="MultiLine" Rows="3" class="input" /></dd>
                      <dd><asp:Label ID="lblStatusNoteMessage" runat="server" CssClass="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt><h3>Enter your status message.</h3></dt>
                      <dd>Maximum length of 1000 characters.</dd>
                    </dl>
                  </asp:Panel>
                  <asp:Panel ID="pnlEmailNotifications" runat="server" CssClass="row">
                    <dl>
                      <dt>Receive email notification</dt>
                      <dd><asp:CheckBox ID="chkReceiveEmail" runat="server" /></dd>
                      <dd><asp:Label ID="lblReceiveEmailMessage" runat="server" CssClass="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt><h3></h3></dt>
                      <dd>Indicate if user should receive Kiiro system emails.</dd>
                    </dl>
                  </asp:Panel>
                  <asp:Panel ID="pnlAllProjects" runat="server" CssClass="row">
                    <dl>
                      <dt>Add to All Projects</dt>
                      <dd><asp:CheckBox ID="chkAddToAllProjects" runat="server" /></dd>
                      <dd><asp:Label ID="lblAddToAllProjectsMessage" runat="server" CssClass="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt><h3></h3></dt>
                      <dd>Indicate if user should be added to all projects automatically whenever a project is created.</dd>
                    </dl>
                  </asp:Panel>
                  <asp:Panel ID="pnlIsAdministrator" runat="server" CssClass="row">
                    <dl>
                      <dt>Is Administrator</dt>
                      <dd><asp:CheckBox ID="ckIsAdministrator" runat="server" CssClass="checkBoxAdmin" /></dd>
                      <dd><asp:Label ID="lblIsAdministratorMessage" runat="server" CssClass="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt><h3>Is Administrator?</h3></dt>
                      <dd>Indicate if user is an administrator.</dd>
                    </dl>
                  </asp:Panel>
                  <asp:Panel ID="pnlCanManageProjects" runat="server" CssClass="row">
                    <dl>
                      <dt>Can Manage Projects</dt>
                      <dd><asp:CheckBox ID="ckManageProjects" runat="server" CssClass="checkBoxManageProjects" /></dd>
                      <dd><asp:Label ID="lblManageProjectsMessage" runat="server" /></dd>
                    </dl>
                    <dl>
                      <dt><h3>Can manage projects?</h3></dt> 
                      <dd>Indicate if user can manage projects. Unless the user is administrator they will only be able to manage projects and not be 
                      able to manage users or update Kiiro settings.</dd>
                    </dl>
                  </asp:Panel>
                </div>
              </div>
            </div>
          </div>
        </div>
        <v2:CustomFieldCollection id="v2CustomFieldCollection" runat="server" />
        <v2:FormButtons id="v2FormButtons" runat="server" />
      </div>
    </div>
  </div>
</asp:Content>
